var express = require('express');
var router = express.Router();
let {getCustomer,addCustomer,delCustomer,getOneCustomer,update} =require('../controller/customerController')
/* GET users listing. */
//得到全部客户信息
router.get('/', getCustomer);
//添加客户
router.post('/',addCustomer);
// 删除用户
router.delete('/',delCustomer);
//得到一个用户信息修改
router.get('/:_id', getOneCustomer);
// 确认修改
router.put('/', update);
module.exports = router;
